/******************************************************************
******** 
 * ++ 
 * Author:    Team 1
 * Module Name  :  AdvisorPiece.cpp
 * 
 * Description  : Source file for class AdvisorPiece
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
 *                
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
 * 
 * Mod. History :  18.06.13 - Truong Cong Hau
 *                            File first created 
 *                            MP PROJECT 
 *							  Derived class from class ChessPiece, implement functions and difine rule for horse pieces
 * -- 
 
*******************************************************************
*****/

//Include files
#include "stdafx.h"
#include "BasicRule.h"
#include "AdvisorPiece.h"

/**********************************************************
********
*++
* Method name : AdvisorPiece::AdvisorPiece ()
* Decription  : This method used to
* 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
*
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
* Parameter : no
* Global available : no
* Return value : no
*               
*--
***********************************************************
********/
AdvisorPiece::AdvisorPiece()
{

}

/**********************************************************
********
*++
* Method name : AdvisorPiece::~AdvisorPiece ()
* Decription  : This method used to
* 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
*
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
* Parameter : no
* Global available : no
* Return value : no
*               
*--
***********************************************************
********/
AdvisorPiece::~AdvisorPiece()
{

}

/**********************************************************
********
*++
* Method name : AdvisorPiece::CanMoveTo ()
* Decription  : This method used to
* 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
*
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
* Parameter : position
* Global available : no
* Return value : bool
*               
*--
***********************************************************
********/
bool AdvisorPiece::CanMoveTo(POINT currPos, POINT newPos)
{
	return BasicRule::CanAdvisorMoveTo(currPos, newPos);
}